﻿using UnityEngine;
using System.Collections;

public class FloorSetting : MonoBehaviour
{
    public Transform FloorOnStanding;
    public Transform FloorForward;

	private void Start () 
	{
		
	}
	
	private void Update ()
	{
        if (transform.position.z > FloorOnStanding.position.z + 32)
        {
            FloorOnStanding.position = new Vector3(0, 0, FloorForward.position.z + 32);
            Transform temp = FloorOnStanding;
            FloorOnStanding = FloorForward;
            FloorForward = temp;
        }
	}
}
